﻿using System;

namespace RAP.Framework.Libary.DomTemplateBuilder
{
	/// <summary>
	/// 参数错误
	/// </summary>
	public class ParamException : Exception
    {
        /// <summary>
        /// 错误编码
        /// </summary>
        public int ErrorCode { get; }

        /// <summary>
        /// 参数错误的构造函数
        /// </summary>
        /// <param name="message"></param>
        /// <param name="errorCode"></param>
        public ParamException ( string message, int errorCode = -9999 ) : base( message )
        {
            this.ErrorCode = errorCode;
        }
    }
}
